<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>index3.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

  </head>
  
  <body>
  <p id="color" style="color: black">请改变我的颜色</p>
  <button type="button" onclick="color()">CLICK</button>
  
   <script type="text/javascript">
   function color(){
   	var text = document.getElementById("color");
	   	if(text.style.color == "black"){
	   	
	   		text.style.color="red";
	   		
	   	}else if(text.style.color == "red"){
	   	
	   		text.style.color="violet";
	   		
	   	}else if(text.style.color == "violet"){
	   	
	   		text.style.color="green";
	   		
	   	}else if(text.style.color == "green"){
	   	
	   		text.style.color="black";
	   	}
   }
   </script>
   <br><a href="index4.html">下一题</a>
  </body>
</html>
